import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueFullPage from 'vue-fullpage.js'
import 'lib-flexible'
import VueTouch from 'vue-touch'
// import Vconsole from 'vconsole';
// import './utils/jquery.min.js'
// import './utils/qrcode.js'
import axios from 'axios' //公共配置后的axios
import { Popup } from 'vant'
import { NavBar} from 'vant'
import { Progress } from 'vant';
// console.log(QRCode)
// new VConsole()
// const vConsole = new Vconsole()
// Vue.use(vConsole)
import { NoticeBar } from 'vant';

Vue.use(NoticeBar);
import { Toast } from 'vant';

Vue.use(Toast);
Vue.use(VueFullPage)

Vue.use(Popup)
Vue.use(NavBar)
Vue.use(Progress)
Vue.config.productionTip = false

Vue.use(VueTouch, { name: 'v-touch' })
// if(process.env.NODE_ENV === 'production') {
// 	axios.defaults.baseURL = '/'
// } else {
// 	axios.defaults.baseURL = '/api/'
// }
axios.defaults.baseURL = '/api'
// axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencodes'
//全局引用 公共配置过的 axios
Vue.prototype.$http = axios
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
